package com.rd.student.jiaji.class4.suyan.zrrd.day12;

public class SingLeton1 {
    SingLeton1(){}
    private static SingLeton1 instance;
    public static  SingLeton1 getInstance(){
        //只有在第一次调用时被创建
        if (instance==null){
            instance=new SingLeton1();
        }
        return instance;
    }
}
